<template>
	<view class="content">
		<u-navbar placeholder title="订单详情" :autoBack="true"></u-navbar>
		<view class="detai-top">
			<view style="color: #999999;">采购员</view>
			<view style="margin-left: 23rpx;">张三</view>
			<view style="margin-left: 23rpx;">123XXXX3452</view>
		</view>
		<view class="detail-list">
			<view class="goods-list" v-for="(item, index) in listData" :key="index">
				<view class="goods-list__box">
					<image class="goods-list__box__image" :src="item.recPic" mode="widthFix"></image>
					<view class="goods-list__box__right">
						<view class="goods-list__box__top">
							<view class="goods-list__box__title">{{ item.name }}</view>
						</view>

						<view style="display: flex;align-items: center;margin-top: 15rpx;">
							<view class="goods-list__box__bot">规格：30斤/件</view>
							<view class="goods-list__box__bot" style="margin-left: 23rpx;">规格：30斤/件</view>
						</view>
					</view>
				</view>
				<view class="item-price">￥233.00</view>
				<view class="item-num">x1</view>
			</view>
			<u-line color="#d8d8d8"></u-line>
			<view class="total-al">
				总价：
				<text style="color: #E93325;font-size: 31rpx;">￥699.00</text>

			</view>
		</view>
		<view class="detail-bom">
			<view class="flex-row">
				<view style="color: #999999;">订单编号</view>
				<view style="margin-left: 23rpx;">3333332222221111</view>
				<view class="bom-but">复制</view>
			</view>
			<view class="flex-row" style="margin-top: 23rpx;">
				<view style="color: #999999;">下单时间</view>
				<view style="margin-left: 23rpx;">2023-11-29 12:23:39</view>
			</view>
		</view>
		<view class="submit-but">
			<view class="add-but">确定</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				listData: [{
						recPic: 'https://bhzhtc.oss-cn-beijing.aliyuncs.com/sxsd/df6feeec57d04847b1a27948e956eade.png',
						name: '精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜',
						unitPrice: 0,
						count: 22
					},
					{
						recPic: 'https://bhzhtc.oss-cn-beijing.aliyuncs.com/sxsd/df6feeec57d04847b1a27948e956eade.png',
						name: '精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜',
						unitPrice: 0,
						count: 22
					},
					{
						recPic: 'https://bhzhtc.oss-cn-beijing.aliyuncs.com/sxsd/df6feeec57d04847b1a27948e956eade.png',
						name: '精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜',
						unitPrice: 0,
						count: 22
					},
					{
						recPic: 'https://bhzhtc.oss-cn-beijing.aliyuncs.com/sxsd/df6feeec57d04847b1a27948e956eade.png',
						name: '精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜',
						unitPrice: 0,
						count: 22
					},
					{
						recPic: 'https://bhzhtc.oss-cn-beijing.aliyuncs.com/sxsd/df6feeec57d04847b1a27948e956eade.png',
						name: '精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜',
						unitPrice: 0,
						count: 22
					},
					{
						recPic: 'https://bhzhtc.oss-cn-beijing.aliyuncs.com/sxsd/df6feeec57d04847b1a27948e956eade.png',
						name: '精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜',
						unitPrice: 0,
						count: 22
					},
					{
						recPic: 'https://bhzhtc.oss-cn-beijing.aliyuncs.com/sxsd/df6feeec57d04847b1a27948e956eade.png',
						name: '精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜精品芹菜',
						unitPrice: 0,
						count: 22
					},
				],
			}
		},
		methods: {

		}
	}
</script>

<style scoped lang="scss">
	.content {
		padding-bottom: calc(130rpx + env(safe-area-inset-bottom) / 2) !important;
		box-sizing: border-box;
	}

	.detai-top {
		width: 688rpx;
		height: 85rpx;
		background: #FFFFFF;
		border-radius: 19rpx;
		display: flex;
		align-items: center;
		padding: 0 23rpx;
		box-sizing: border-box;
		color: #333333;
		font-size: 28rpx;
		margin: 31rpx auto;
	}

	.detail-list {
		width: 688rpx;
		background: #FFFFFF;
		border-radius: 19rpx;
		padding: 23rpx;
		box-sizing: border-box;
		color: #333333;
		font-size: 28rpx;
		margin: 31rpx auto;
	}

	.total-al {
		margin-top: 23rpx;
		text-align: right;
		color: #333333;
		font-size: 25rpx;
	}

	.detail-bom {
		width: 688rpx;
		padding: 23rpx;
		box-sizing: border-box;
		background: #FFFFFF;
		border-radius: 19rpx;
		color: #333333;
		font-size: 28rpx;
	}

	.bom-but {
		margin-left: 23rpx;
		width: 69rpx;
		height: 38rpx;
		border-radius: 6rpx;
		border: 1px solid #DEDEDE;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 23rpx;
	}

	.flex-row {
		display: flex;
		align-items: center;
	}

	.goods-list {

		width: 100%;
		background-color: #FFFFFF;
		position: relative;
		margin-bottom: 23rpx;

		.item-price {
			color: #E93325;
			font-size: 28rpx;
			font-weight: 500;
			position: absolute;
			top: 0;
			right: 0;
		}

		.item-num {
			color: #999999;
			font-size: 25rpx;
			position: absolute;
			top: 50rpx;
			right: 0;
		}

		.goods-list__box {

			display: flex;

			.goods-list__box__image {
				width: 138rpx;
				height: 138rpx;
				border-radius: 12rpx;
				flex-shrink: 0;
			}

			.goods-list__box__right {
				flex: 1;
				margin-left: 15rpx;
				display: flex;
				flex-direction: column;
			}

			.goods-list__box__top {
				display: flex;
				align-items: center;
				font-size: 28rpx;
				font-weight: 500;
				color: #333333;
			}

			.goods-list__box__title {

				width: 300rpx;
				word-break: break-all;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 2;
				overflow: hidden;
			}

			.goods-list__box__bot {
				color: #999999;
				font-size: 23rpx;
			}




		}

		.item-but {
			display: flex;
			margin-top: 15rpx;
			justify-content: flex-end;
		}

		.look-detail {
			width: 162rpx;
			height: 58rpx;
			background: #2FCC71;
			border-radius: 29rpx;
			font-size: 23rpx;
			font-weight: bold;
			color: #FFFFFF;
			display: flex;
			align-items: center;
			justify-content: center;
		}
	}
</style>